package com.bwie.controller;

import com.bwie.service.BrandService;
import com.bwie.utils.R;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author : LeiMingkun
 * @date : 2024-08-06 11:36
 * @description : BrandController
 **/
@RestController
@RequestMapping("/brand/brand")
public class BrandController {
    @Resource
    private BrandService brandService;
    @RequestMapping("/getBrands/{id}")
    public R getBrands(@PathVariable(name = "id") Integer id){
        return brandService.getBrands(id);
    }
}